package com.bdqn.t330.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.lang.reflect.Field;

@TableName("sys_user")
public class User implements Serializable {
    @TableId(type = IdType.AUTO)
    @TableField(value = "usr_id")
    private Long usrId;
    @TableField(value = "usr_name", fill = FieldFill.DEFAULT)
    private String usrName;
    @TableField(value = "usr_password", fill = FieldFill.DEFAULT)
    private String usrPassword;
    @TableField(value = "usr_role_id", fill = FieldFill.DEFAULT)
    private Long usrRoleId;
    @TableField(value = "usr_flag", fill = FieldFill.DEFAULT)
    private Integer usrFlag;

    public Long getUsrId() {
        return usrId;
    }

    public void setUsrId(Long usrId) {
        this.usrId = usrId;
    }

    public String getUsrName() {
        return usrName;
    }

    public void setUsrName(String usrName) {
        this.usrName = usrName;
    }

    public String getUsrPassword() {
        return usrPassword;
    }

    public void setUsrPassword(String usrPassword) {
        this.usrPassword = usrPassword;
    }

    public Long getUsrRoleId() {
        return usrRoleId;
    }

    public void setUsrRoleId(Long usrRoleId) {
        this.usrRoleId = usrRoleId;
    }

    public Integer getUsrFlag() {
        return usrFlag;
    }

    public void setUsrFlag(Integer usrFlag) {
        this.usrFlag = usrFlag;
    }

    public User(Long usrId, String usrName, String usrPassword, Long usrRoleId, Integer usrFlag) {
        this.usrId = usrId;
        this.usrName = usrName;
        this.usrPassword = usrPassword;
        this.usrRoleId = usrRoleId;
        this.usrFlag = usrFlag;
    }

    public User(Long usrId, String usrName) {
        this.usrId = usrId;
        this.usrName = usrName;
    }

    public User() {
    }
}
